﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TT.Runtime.Type
{

    public interface IType
    {
        /// <summary>
        /// 类型名
        /// </summary>
        string name
        {
            get;
        }
        string libname
        {
            get;
        }
        /// <summary>
        /// class or data(不用struct 不同语言差距有点太大了)
        /// </summary>
        bool isClass
        {
            get;
        }

        bool isExport
        {
            get;
        }
        bool isInterface
        {
            get;
        }
        IType basetype  //基类型
        {
            get;
        }
        IType[] _interface //实现接口
        {
            get;
        }
        IField[] fields
        {
            get;
        }
        IMethod[] Methods
        {
            get;
        }
    }
    //变量
    public interface IField
    {

    }

    public interface IMethod
    {

    }
}
